package day3;

import java.io.*;

//测试字符流和缓冲流
public class TestChar {
    public static void main(String[] args) {
        try(FileReader fr=new FileReader("d://io//io.txt");
            FileWriter fw=new FileWriter("d://io//newIo.txt");
            BufferedReader br=new BufferedReader(fr);
            BufferedWriter bw=new BufferedWriter(fw)){
            String msg="";
            while((msg=br.readLine())!=null){
               bw.write(msg+"\n");
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
